package ${package.Service};

import ${cfg.packageName}.model.bean.${entity}ListReq;
import ${cfg.packageName}.model.bean.${entity}ListForPageReq;
import ${cfg.packageName}.model.vo.${entity}VO;
import ${cfg.packageName}.model.bo.${entity}BO;
import ${cfg.packageName}.model.dto.${entity}DTO;
import ${cfg.packageName}.model.dto.${entity}SaveDTO;
import ${cfg.packageName}.model.bean.${entity}SaveReq;
import ${cfg.packageName}.model.bean.${entity}DelReq;
//import ${cfg.packageName}.model.entity.${entity};
import com.mti.framework.core.bean.PageableOut;
import java.util.List;

/**
 * <p>
 * ${table.comment!} 服务类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName}{

    List<${entity}VO> get${entity}List(${entity}ListReq ${table.entityPath}ListReq);

    PageableOut<${entity}VO> get${entity}ListPage(${entity}ListForPageReq ${table.entityPath}ListForPageReq);

    boolean saveOrUpdate${entity}(${entity}SaveDTO ${table.entityPath}SaveDTO);

    int batchSave${entity}(List<${entity}SaveDTO> ${table.entityPath}SaveDTOs);

    boolean delete${entity}ById(${entity}DelReq ${table.entityPath}DelReq);

    ${entity}VO get${entity}(${entity}DTO ${table.entityPath}DTO);

}
</#if>
